.table {
    width: 100% !important;
    margin-bottom: 0;
}

.table td,
.table th {
    padding: 0.75rem;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    max-width: 200px;
}

/* Único selector para celdas editables */
.editable tbody tr td.edit {
    background: rgba(58, 87, 232, 0.1) !important;
    border: 1px solid rgba(58, 87, 232, 0.3) !important;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(58, 87, 232, 0.1);
    padding: 0.75rem !important;
}

.table-responsive {
    margin: 0;
    width: 100%;
}

.btn-icon {
    padding: 0.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
}
/* Único selector para celdas editables */
.editable tbody tr td.edit {
    background: rgba(58, 87, 232, 0.1) !important;
    border: 1px solid rgba(58, 87, 232, 0.3) !important;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(58, 87, 232, 0.1);
    padding: 0.75rem !important;
}

/* Estilo específico para la celda con foco */
.editable tbody tr td.edit:focus {
    background: rgba(58, 87, 232, 0.2) !important;
    border-color: rgba(58, 87, 232, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(58, 87, 232, 0.2);
    outline: none;
}
.editable td:last-child {
    width: 82px !important;
    min-width: 82px !important;
    padding: 0.4rem !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .editable td:last-child {
        position: sticky;
        right: 0;
        background: #fff;
        box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .table td,
    .table th {
        max-width: 120px;
        font-size: 0.875rem;
    }
}